﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderInfo.aspx.cs" Inherits="OrderInfo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../layui/css/layui.css" rel="stylesheet" />
</head>
<body>
    <blockquote class="layui-elem-quote news_search">
        <div class="layui-inline">
            <button class="layui-btn site-demo-active" data-type="tabAdd" id="AddOrder">添加订单信息</button>
        </div>
    </blockquote>
    <table class="layui-table" lay-data="{ url:'../API/OrdersListHandler.ashx',loading:true, page:true, id:'orderList'}" lay-filter="orderbar" width="100%">
        <thead>
            <tr>
                <th lay-data="{field:'OrderID', sort: true}">订单编号</th>
                <th lay-data="{field:'UserID', sort: true , edit: 'text'}">用户编号</th>
                <th lay-data="{field:'BookID', sort: true , edit: 'text'}">图书编号</th>
                <th lay-data="{field:'Price', sort: true , edit: 'text'}">订单金额</th>
                <th lay-data="{field:'Num', sort: true , edit: 'text'}">数量</th>
                <th lay-data="{field:'BookingTime', sort: true , edit: 'text'}">预定时间</th>
                <th lay-data="{field:'BookingStatus', sort: true , edit: 'text'}">订单状态</th>
                <th lay-data="{field:'CopUser', sort: true , edit: 'text'}">销售人员</th>
                <th lay-data="{fixed: 'right', align:'center', toolbar: '#orderListbar'}">操作按钮</th>
            </tr>
        </thead>
    </table>
    <script type="text/html" id="orderListbar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">详细</a>
    </script>
</body>
</html>
<script src="../../layui/layui.js"></script>
<script src="../../js/Info.js"></script>